<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>分销设置</title>
    {template 'stourtravel/public/public_js'}
    {php echo Common::getCss('style.css,base.css'); }
    {php echo Common::getScript('config.js');}
    {php echo Common::getScript("uploadify/jquery.uploadify.min.js"); }
    {php echo Common::getCss('uploadify.css','js/uploadify/'); }
    <style>
       .ratio-sp{
           float:left;
           line-height: 24px;
           margin-left:3px;
       }
       .hint-sp{
           float:left;
           margin-left:15px;
           line-height: 24px;
           height:24px;
           color:#acacac;
       }
       .nr-list{
           padding: 20px 10px;
       }
    </style>
</head>

<body>
	<table class="content-tab">
    <tr>
    <td width="119px" class="content-lt-td"  valign="top">
     {template 'stourtravel/public/leftnav'}
    <!--右侧内容区-->
    </td>
     <td valign="top" class="content-rt-td">
        <!--面包屑-->

      <div>
        <form id="frm">
         <div class="w-set-con">
        	<div class="w-set-tit bom-arrow">

                   <span class="menu-item"><s></s>分销说明</span>

                <a href="javascript:;" class="refresh-btn" onclick="window.location.reload()">刷新</a></div>
          <div class="w-set-nr">

              <div class="nr-list">

                  <div class="txt">
                      {Common::get_editor('cfg_fenxiao_content',$info['cfg_fenxiao_content'],700,300)}
                  </div>
              </div>
            <div class="opn-btn">
            	<a class="normal-btn ml-10" href="javascript:;" id="btn_save">保存</a>
            </div>
          </div>
        </div>
        </form>
      </div>
  </td>
  </tr>
  </table>

  
  
	<script>

	$(document).ready(function(){
        //配置信息保存
        $("#btn_save").click(function(){
            Ext.Ajax.request({
                url   :  SITEURL+"fenxiao/ajax_config_save",
                method  :  "POST",
                isUpload :  true,
                form  : "frm",
                success  :  function(response, opts)
                {
                    var data = $.parseJSON(response.responseText);
                    if(data.status)
                    {
                        ST.Util.showMsg('保存成功!','4',2000);
                    }
                }
            });
        })

        $(".menu-item").click(function(){
              $(this).addClass('on');
              $(this).siblings().removeClass('on');
              var id=$(this).attr("data-id");
              $(".ratio-content").hide();
              $("#product_"+id).show();
        });
        $(".menu-item:first").trigger('click');
     });
    </script>

</body>
</html>
